libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2
authorChristopher Clark <christopher.w.clark@gmail.com>
Thu, 16 Aug 2018 20:22:41 +0000 (13:22 -0700)
committerIan Jackson <ian.jackson@citrix.com>
Fri, 22 Feb 2019 14:41:14 +0000 (14:41 +0000)
commitc5a7e34b8bc3e757c9d7daa12de8cedad4aa53f8
treeb0477d6ffe2daba99ba7597c411e820d40a3da31
parent3223f38c4fd9a4f426b5e23fec912bfba4d66646
libxl/arm: Fix build on arm64 + acpi w/ gcc 8.2

Add zero-padding to #defined ACPI table strings that are copied.
Provides sufficient characters to satisfy the length required to
fully populate the destination and prevent array-bounds warnings.
Add BUILD_BUG_ON sizeof checks for compile-time length checking.

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Wei Liu <wei.liu2@citrix.com>
(cherry picked from commit b8f33431f3dd23fb43a879f4bdb4283fdc9465ad)
tools/libxl/libxl_arm_acpi.c